package com.gagakuai.domain.dto;



import com.gagakuai.annotation.Query;

import java.sql.Timestamp;
import java.util.List;

/*
 * 日志查询类
 *
 */
public class LogQuery {

    @Query(blurry = "username,description,address,requestIp,method,params")
    private String blurry;

    @Query
    private String logType;

    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> createTime;

    public LogQuery() {
    }

    public String getBlurry() {
        return this.blurry;
    }

    public String getLogType() {
        return this.logType;
    }

    public List<Timestamp> getCreateTime() {
        return this.createTime;
    }

    public void setBlurry(String blurry) {
        this.blurry = blurry;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public void setCreateTime(List<Timestamp> createTime) {
        this.createTime = createTime;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LogQuery;
    }

    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object blurry = this.getBlurry();
        result = result * PRIME + (blurry == null ? 43 : blurry.hashCode());
        final Object logType = this.getLogType();
        result = result * PRIME + (logType == null ? 43 : logType.hashCode());
        final Object createTime = this.getCreateTime();
        result = result * PRIME + (createTime == null ? 43 : createTime.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "LogQuery(blurry=" + this.getBlurry() + ", logType=" + this.getLogType() + ", createTime=" + this.getCreateTime() + ")";
    }
}
